﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using University.Workshop.Model;
using University.Workshop.Presenters;

namespace University.Workshop.WinApp
{
    public partial class MedicineRegister : Form, IMedicine
    {
        PresenterMedicine presenter;
        public MedicineRegister()
        {
            InitializeComponent();
            presenter = new PresenterMedicine(this);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(presenter.PresenterMedicineRegister());
        }

        public string Id
        {
            get
            {
                return textBox1.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Brand
        {
            get
            {
                return textBox2.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Generic
        {
            get
            {
                return textBox3.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public int Price
        {
            get
            {
                return int.Parse(textBox4.Text);
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public int Quantity
        {
            get
            {
                return int.Parse(textBox5.Text);
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public DateTime Expiration
        {
            get
            {
                return dateTimePicker1.Value;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Lot
        {
            get
            {
                return textBox7.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        public void SetMessage(string message)
        {
            throw new NotImplementedException();
        }
    }
}
